/**
 * 快捷支付绑定推荐关系
 */
import * as client from './client'
import urlConfig from './urlConfig'

export class AllowDiscountRst
{
    public salesOrderUID?:string;
}

export class AllowDiscountRpn
{
    //是否成功（1=>成功）
    public isSuccess: number;
    //状态码？
    public code: string;
    //描述
    public description: string;
    //返回数据
    public resData: boolean;
}
/**
 * 获取数据
 * @param rst 参数
 */
export async function exec(rst: AllowDiscountRst,userInfo:any) {
    const data = await client.exec(urlConfig.isAllowDiscount, rst,userInfo);
    return JSON.parse(data) as AllowDiscountRpn;
}